package com.hisoft.traffic.service;

import com.hisoft.traffic.dao.UserMapper;
import com.hisoft.traffic.pojo.User;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @program: ssmdemo
 * @description:
 * @author: wlg
 * @create: 2022-02-28 14:55:59
 **/
@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public User login(String userName, String password) {
        return userMapper.getUserByUsernameAndPassword(userName,password);
    }
}
